// C11:MoreBasicThreads.cpp
//  Adding more threads.
//  {L} ZThread
#include "LiftOff.h"
#include "zthread/Thread.h"
#include <iostream>

using namespace ZThread;
using namespace std;

int main(void) {
  const int SZ = 5;
  try {
    for (int i = 0; i < SZ; i++) {
      Thread t(new LiftOff(10, i));
    }
  } catch (Synchronization_EXception &e) {
    cerr << e.what() << endl;
  }
}